<template>
	<view class="container container333211">
		<view class="flex diygw-col-24 flex-direction-column justify-center items-center flex-nowrap">
			<view class="flex flex-wrap diygw-col-0 flex-direction-column justify-center items-center flex19-clz" @tap="navigateTo" data-type="page" data-url="/pages/sell">
				<image src="/static/icon1_bj.png" class="image-size diygw-image diygw-col-0 image-clz" mode="widthFix"></image>
				<text class="diygw-col-0 text14-clz"> 快速开单 </text>
			</view>
		</view>
		<view class="flex flex-wrap diygw-col-24 flex13-clz">
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex6-clz" @tap="navigateTo" data-type="page" data-url="/pages/sells">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex15-clz">
						<text class="diygw-col-0 text3-clz"> 销售管理 </text>
						<text class="diygw-col-0 text16-clz"> 查看所有销售订单 </text>
					</view>
					<image src="/static/icon1_gw.png" class="image2-size diygw-image diygw-col-0 image2-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex17-clz" @tap="navigateTo" data-type="page" data-url="/pages/buys">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex20-clz">
						<text class="diygw-col-0 text8-clz"> 采购管理 </text>
						<text class="diygw-col-0 text9-clz"> 查看所有采购订单 </text>
					</view>
					<image src="/static/icon1_bq.png" class="image7-size diygw-image diygw-col-0 image7-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex21-clz" @tap="navigateTo" data-type="page" data-url="/pages/customer">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex23-clz">
						<text class="diygw-col-0 text18-clz"> 客户管理 </text>
						<text class="diygw-text-line1 diygw-col-0 text19-clz"> 查看所有客户 </text>
					</view>
					<image src="/static/icon1_fs.png" class="image6-size diygw-image diygw-col-0 image6-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex24-clz" @tap="navigateTo" data-type="page" data-url="/pages/supplier">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex26-clz">
						<text class="diygw-col-0 text10-clz"> 供应商管理 </text>
						<text class="diygw-text-line1 diygw-col-0 text11-clz"> 查看所有供应商 </text>
					</view>
					<image src="/static/icon1_rzyh.png" class="image8-size diygw-image diygw-col-0 image8-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex5-clz" @tap="navigateTo" data-type="page" data-url="/pages/basic/cate">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex11-clz">
						<text class="diygw-col-0 text1-clz"> 分类管理 </text>
						<text class="diygw-col-0 text2-clz"> 管理所有产品分类 </text>
					</view>
					<image src="/static/icon2_gd.png" class="image4-size diygw-image diygw-col-0 image4-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex12-clz" @tap="navigateTo" data-type="page" data-url="/pages/basic/product">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex16-clz">
						<text class="diygw-col-0 text6-clz"> 产品管理 </text>
						<text class="diygw-col-0 text7-clz"> 管理产品 </text>
					</view>
					<image src="/static/icon2_bq.png" class="image5-size diygw-image diygw-col-0 image5-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex4-clz" @tap="navigateTo" data-type="page" data-url="/pages/user">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex8-clz">
						<text class="diygw-col-0 text4-clz"> 用户管理 </text>
						<text class="diygw-col-0 text5-clz"> 管理登录用户 </text>
					</view>
					<image src="/static/icon2_xm.png" class="image3-size diygw-image diygw-col-0 image3-clz" mode="widthFix"></image>
				</view>
			</view>
			<view class="flex diygw-col-12 flex-direction-column items-start flex-wrap flex-clz" @tap="navigateTo" data-type="loginOutFunction">
				<view class="flex diygw-col-24 items-center flex-nowrap">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column flex2-clz">
						<text class="diygw-col-0 text-clz"> 退出登录 </text>
					</view>
					<image src="/static/icon1_s.png" class="image1-size diygw-image diygw-col-0 image1-clz" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				//页面传参
				globalOption: {},
				//自定义全局变量
				globalData: {}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {},
			// 新增方法 自定义方法
			async initFunction(param) {
				let thiz = this;
				if (!this.$session.getToken()) {
					//比如未登录，转身到其他页面等
					this.showToast('请先登录');

					this.navigateTo({
						type: 'page',
						url: 'login'
					});
					return;
				}
			},

			// 退出登录 自定义方法
			async loginOutFunction(param) {
				let thiz = this;
				this.$session.clearUser();
				this.navigateTo({
					type: 'page',
					url: 'login'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex19-clz {
		padding-top: 40rpx;
		border-bottom-left-radius: 60%;
		padding-left: 40rpx;
		padding-bottom: 40rpx;
		border-top-right-radius: 60%;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: 400rpx !important;
		border-top-left-radius: 60%;
		margin-top: 40rpx;
		border-bottom-right-radius: 60%;
		margin-bottom: 40rpx;
		height: 400rpx !important;
		padding-right: 40rpx;
	}
	.image-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image-size {
		height: 160rpx !important;
		width: 160rpx !important;
	}
	.text14-clz {
		font-weight: bold;
		font-size: 30rpx !important;
	}
	.flex13-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex6-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex15-clz {
		flex: 1;
	}
	.text3-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text16-clz {
		color: #a9a9a9;
	}
	.image2-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image2-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex17-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex20-clz {
		flex: 1;
	}
	.text8-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text9-clz {
		color: #a9a9a9;
	}
	.image7-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image7-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex21-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex23-clz {
		flex: 1;
	}
	.text18-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text19-clz {
		color: #a9a9a9;
	}
	.image6-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image6-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex24-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex26-clz {
		flex: 1;
	}
	.text10-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text11-clz {
		color: #a9a9a9;
	}
	.image8-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image8-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex5-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex11-clz {
		flex: 1;
	}
	.text1-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text2-clz {
		color: #a9a9a9;
	}
	.image4-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image4-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex12-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex16-clz {
		flex: 1;
	}
	.text6-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text7-clz {
		color: #a9a9a9;
	}
	.image5-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image5-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex4-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex8-clz {
		flex: 1;
	}
	.text4-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.text5-clz {
		color: #a9a9a9;
	}
	.image3-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image3-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.flex-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 10rpx;
		background-color: #f7faff;
		margin-left: 10rpx;
		flex-shrink: 0;
		overflow: hidden;
		width: calc(50% - 10rpx - 10rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.flex2-clz {
		flex: 1;
	}
	.text-clz {
		flex: 1;
		font-size: 30rpx !important;
	}
	.image1-clz {
		border: 2rpx solid #fbfbfb;
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image1-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.container333211 {
	}
</style>
